<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>安装程序</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
</head>

<body>

	<div class="top">
		<div class="top-logo"></div>
		<div class="top-link">
			<ul>
				<li><a href="http://www.yigecms.cn" target="_blank">官方网站</a></li>
				<li><a href="#" target="_blank">技术论坛</a></li>
				<li><a href="#" target="_blank">帮助</a></li>
			</ul>
		</div>
		<div class="top-version">
			<!-- 版本信息 -->
			<h2>YIGECMS安装</h2>
		</div>
	</div>

	<div class="main">
		<div class="pleft">
			<dl class="setpbox t1">
				<dt>安装步骤</dt>
				<dd>
					<ul>
						<li class="succeed">许可协议</li>
						<li class="now">环境检测</li>
						<li>参数配置</li>
						<li>正在安装</li>
						<li>安装完成</li>
					</ul>
				</dd>
			</dl>
		</div>

		<div class="pright">
			<div class="enter_lf">
				<div class="Envin_lf">
					<div class="menter_lf">
						<span>服务器信息</span>
					</div>
					<div class="menter_table_lf">
						<table width="1000" border="0" cellspacing="0" cellpadding="0"
							class="tabletable">
							<thead>
								<tr>
									<th>参数</th>
									<th>值</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>服务器域名</td>
									<td style="color: #999;">&nbsp;<?php echo  getenv("SERVER_NAME");?></td>
								</tr>
								<tr>
									<td>服务器操作系统</td>
									<td style="color: #999;">&nbsp;<?php echo PHP_OS;?></td>
								</tr>
								<tr>
									<td>服务器解译引擎</td>
									<td style="color: #999;">&nbsp;<?php echo getenv("SERVER_SOFTWARE");?></td>
								</tr>
								<tr>
									<td>PHP版本</td>
									<td style="color: #999;">&nbsp;<?php echo PHP_VERSION;?></td>
								</tr>
								<tr>
									<td>系统安装目录</td>
									<td style="color: #999;">&nbsp;<?php echo realpath("../")?></td>
								</tr>
							</tbody>
						</table>

					</div>
				</div>
<?php 
$PHP_GD = '';
if(extension_loaded('gd'))
{
    if(function_exists('imagepng')) $PHP_GD .= 'png';
    if(function_exists('imagejpeg')) $PHP_GD .= ' jpg';
    if(function_exists('imagegif')) $PHP_GD .= ' gif';
}
$PHP_DNS = preg_match("/^[0-9.]{7,15}$/", @gethostbyname('www.yigecms.com')) ? 1 : 0;
//是否满足yigecms安装需求
$is_right = (phpversion() >= '5.3.0' && extension_loaded('mysql') && ini_get('short_open_tag')) ? 1 : 0;
?>
				<div class="Envin_lf">
					<div class="menter_lf">
						<span>系统环境检测</span>
					</div>
					<div class="menter_table_lf">
						<table width="1000" border="0" cellspacing="0" cellpadding="0"
							class="tabletable">
							<thead>
								<tr>
									<th>检查项目</th>
									<th>当前环境</th>
									<th>建议环境</th>
									<th>功能影响</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>mysql(pdo) 扩展</td>
									<td><?php if(extension_loaded("pdo_mysql")){ ?>√<?php }else{ ?>×<?php }?></td>
									<td>必须开启</td>
									<td><?php if(extension_loaded('pdo_mysql')){ ?><font color="yellow">√</font><?php }else{ ?><font
										color="red">无法安装</font><?php }?></td>
								</tr>
								<tr>
									<td>gd 扩展</td>
									<td><?php if($PHP_GD){ ?>√ （支持 <?php echo $PHP_GD;?>）<?php }else{ ?>×<?php }?></td>
									<td>建议开启</td>
									<td><?php if($PHP_GD){ ?><font color="yellow">√</font><?php }else{ ?><font
										color="red">不支持缩略图和水印</font><?php }?></td>
								</tr>
								<tr>
									<td>zlib 扩展</td>
									<td><?php if(extension_loaded('zlib')){ ?>√<?php }else{ ?>×<?php }?></td>
									<td>建议开启</td>
									<td><?php if(extension_loaded('zlib')){ ?><font color="yellow">√</font><?php }else{ ?><font
										color="red">不支持Gzip功能</font><?php }?></td>
								</tr>
								<tr>
									<td>iconv/mb_string 扩展</td>
									<td><?php if(extension_loaded('iconv') || extension_loaded('mbstring')){ ?>√<?php }else{ ?>×<?php }?></td>
									<td>建议开启</td>
									<td><?php if(extension_loaded('iconv') || extension_loaded('mbstring')){ ?><font
										color="yellow">√</font><?php }else{ ?><font color="red">字符集转换效率低</font><?php }?></td>
								</tr>
								<tr>
									<td>allow_url_fopen</td>
									<td><?php if(ini_get('allow_url_fopen')){ ?>√<?php }else{ ?>×<?php }?></td>
									<td>建议打开</td>
									<td><?php if(ini_get('allow_url_fopen')){ ?><font
										color="yellow">√</font><?php }else{ ?><font color="red">不支持保存远程图片</font><?php }?></td>
								</tr>
								<tr>
									<td>DNS解析</td>
									<td><?php if($PHP_DNS){ ?>√<?php }else{ ?>×<?php }?></td>
									<td>建议设置正确</td>
									<td><?php if($PHP_DNS){ ?><font color="yellow">√</font><?php }else{ ?><font
										color="red">不支持采集和保存远程图片</font><?php }?></td>
								</tr>
							</tbody>
						</table>

					</div>
				</div>
				<div class="menter_btn_lf"></div>
				<div class="menter_btn_a_lf">
					<a href="instal_three.php"><input name="" type="button"
						class="menter_btn_a_a_lf" value="继续"></a> <a
						href="javascript:history.back();"><input name="" type="button"
						class="menter_btn_a_a_lf" value="后退"></a>

				</div>
			</div>
		</div>

</body>
</html>
